package ms.core.common.consts;

public class SysErr {
	final public static String CODE_SUCCESS   			= "S000";			// 成功
	final public static String CODE_FAILURE   			= "S001";			// 失败

	//system error (S001~S0ZZ)
	final public static String SYS_UNKNOWN_ERR			= "S002";			// 系统未知异常
	final public static String SYS_UNKNOWN_FUNC			= "S003";			// 未配置接口或未知功能调用
	final public static String SYS_REALIZATION_ERR		= "S004";			// 接口类名或微服务地址未配置
	final public static String SYS_PARAM_ERR			= "S005";			// 参数错误
	final public static String SYS_CHECKCODE_ERR		= "S006";			// 验证码错误或已失效
	final public static String SYS_ACCESS_FORBID		= "S007";			// 访问被拒绝
	final public static String SYS_COOKIE_FORBID		= "S008";			// 读取cookie失败
	final public static String SYS_COOKIE_INVALID		= "S009";			// cookie已失效,请清空cookie或重新打开浏览器
	final public static String SYS_DATA_NOT_FOUND		= "S00A";			// 无此数据
	final public static String SYS_DATA_EXISTS			= "S00B";			// 数据已存在
	final public static String SYS_CLIENT_NOT_FOUND		= "S00C";			// 未授权微服务
	final public static String SYS_CLIENT_NOT_STARTED	= "S00D";			// 接口服务未启动
	final public static String SYS_SIGNATURE_ERR		= "S00E";			// 签名错误
	final public static String SYS_CONTENT_TYPE_ERR		= "S00F";			// http头错误
	final public static String SYS_UPLOAD_ERR			= "S00G";			// 解析上传附件失败

	//file and file upload error (S100~S1ZZ)
	final public static String FILE_NOT_FOUND			= "S100";			// 文件不存在
	final public static String FILE_ACCESS_ERR 			= "S101";			// 文件访问异常
	//dataBase error (S200~S2ZZ)
	final public static String DB_UNKNOWN_ERR 			= "S200";			// 数据库未知异常
	final public static String DB_CONNECT_ERR 			= "S201";			// 数据库连接失败
	final public static String DB_TABLE_NOT_FOUND		= "S202";			// 表不存在
	final public static String DB_SQL_ERR				= "S203";			// SQL错误
	final public static String DB_STARTTRAN_ERR 		= "S204";			// 启动事务失败
	final public static String DB_COMMITTRAN_ERR		= "S205";			// 提交事务失败
	final public static String DB_ROLLTRAN_ERR			= "S206";			// 回滚事务失败
	final public static String DB_CONFIG_ERR			= "S299";			// 数据库连接配置参数错误
	//RBAC (S300~S3ZZ)
	final public static String USER_RELOGIN				= "S300";			// 重复登录
	final public static String USER_NOT_LOGIN			= "S301";			// 未登录或登录已过期
	final public static String USER_LOGIN_ERR			= "S302";			// 帐号或密码错误
	final public static String USER_NO_RIGHT  			= "S303";			// 无访问权限
	final public static String USER_INACTIVE			= "S304";			// 帐号未激活
	final public static String USER_FROZEN				= "S305";			// 帐号被冻结
	final public static String USER_NORMAL				= "S306";			// 帐号状态正常(用于激活或解冻帐号)
	final public static String USER_ADMIN_ACCOUNT		= "S307";			// 内置管理员帐号
	final public static String USER_ADMIN_ROLE			= "S308";			// 内置管理员角色
	final public static String USER_KILL_SELF			= "S309";			// 不可删除当前登录帐号
	final public static String USER_ROLE_EXISTS			= "S30A";			// 角色已存在
	final public static String USER_USER_EXISTS			= "S30B";			// 用户已存在
	final public static String USER_USER_NOT_FOUND		= "S30C";			// 用户不存在
}
